import Taro from "@tarojs/taro"

export const showLoading = (text) => {
  Taro.showLoading({
    title: text,
  })
}

export const hideLoading = () => {
  Taro.hideLoading()
}

export const showToast = (text, duration: number = 2000) => {
  Taro.showToast({
    title: text,
    icon: "none",
    duration,
  })
}
